<?php
/**
 * Account_Controller_Admin
 *  
 * Controller for actions (in admin area) of admin module
 *
 * @version 2012-10-10
 * @package account
 * @subpackage controller
 * @category Account_Controller_Admin
 */
 
 class Genre_Controller_Visitor extends Controller
{

	/** 
	* Index
	* Default function that will be used upon module start-up.
    *
    * @version 2012-10-10
    * @param Request $req
    * @return view
    * @access public
    */
    public function processIndex($req)
    {
		return $this->processGenreList($req);
    }
	
	
   /**
    * Login
    * This function shows admin login form.
	* This function checks whether the "Remember Login" checkbox is checked. If true, login email will be inserted from cookies.
	* 
    * @param Request $req
    * @return View (login page)
    * @access public
    */
    public function processGenreList($req)
    {
		$dbGenre = Db::getModel("genre");
		$genre = $dbGenre->findBy();
		echo json_encode($genre);
		exit;
    }
}